From 53942b26a2b8e47315224a5b5c65984fc3d865d3 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Tue, 13 Nov 2018 18:23:33 -0600 Subject: [PATCH] Be explicit when importing --- tests/test___init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test___init__.py b/tests/test___init__.py index 2dd7cec..4fa7dff 100644 --- a/tests/test___init__.py +++ b/tests/test___init__.py @@ -20,7 +20,7 @@ # Karl O. Pinc import pyramid.config -import pyramid.threadlocal +from pyramid.threadlocal import get_current_request import pgwui_common.__init__ as pgwui_common_init # Activiate our pytest plugin @@ -37,7 +37,7 @@ def test_base_view_add(pyramid_request_config): pgwui_common_init.includeme(pyramid_request_config) wrapper = pgwui_common_init.base_view(mock_view) - response = wrapper(pyramid.threadlocal.get_current_request()) + response = wrapper(get_current_request()) assert response['pgwui']['url.css'][0:4] == 'http' @@ -50,7 +50,7 @@ def test_base_view_default(pyramid_request_config): pgwui_common_init.includeme(pyramid_request_config) wrapper = pgwui_common_init.base_view(mock_view) - response = wrapper(pyramid.threadlocal.get_current_request()) + response = wrapper(get_current_request()) assert response['pgwui']['url.css'] == css_url -- 2.34.1